// This file was automatically generated from common.soy.
// Please don't edit this file by hand.


var soy = require('rdoc/templates/soy').soy;


exports.typeLink = function(opt_data, opt_sb) {
  var output = opt_sb || new soy.StringBuilder();
  output.append('<a ', (opt_data.anchor) ? 'name="' + opt_data.anchor + ' " ' : '', (opt_data.href) ? 'href="' + opt_data.href + '"' : '', ' class="type-link', (opt_data.kind) ? ' ' + opt_data.kind : '', '">', opt_data.type, '</a>');
  return opt_sb ? '' : output.toString();
};


exports.genericLink = function(opt_data, opt_sb) {
  var output = opt_sb || new soy.StringBuilder();
  output.append('<a href="', opt_data.href, '">', opt_data.text, '</a>');
  return opt_sb ? '' : output.toString();
};


exports.codeBlock = function(opt_data, opt_sb) {
  var output = opt_sb || new soy.StringBuilder();
  output.append('<code class="embedded-code">', opt_data.code, '</code>');
  return opt_sb ? '' : output.toString();
};
